<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/css/shopcart.css">
    <title>购物车</title>
</head>
<body>
    <div class="head"></div>

    <div class="title">购物车</div>

    <div class="w1200">
        <div class="shopcart">
            <div class="shoptit clearfix">
                <div class="ltxt fl">
                    <p class="fl">全部礼品 <span class="Allnum"></span></p>
                </div>

                <div class="rtxt fr">
                    <p class="price fl"><span>已选礼品</span> <b class="Allprice"></b>积分 </p>
                    <a href="javascript:;" class="setbtn fl jump" id="setbtn">结算</a>
                </div>
            </div>

            <div class="cartbox" id="cartbox">



                <div class="gotobuy">
                        <p>当前购物车为空 <span><a href="/index.html">去购物</a></span></p>
                </div>

            </div>

            <script type="text/html" id='cartTemplate'> 
            
                <table class="cartmain" id="shoptable" cellspacing="0" cellpadding="0">
                        <thead>
                            <tr height='39px'>
                                <th width='110px'><input type="checkbox" id="all-checked" class="all-checked all1"><i>全选</i></th>
                                <th width='525px'>礼品信息</th>
                                <th width='180px'>单价</th>
                                <th width='100px'>数量</th>
                                <th width='180px'>总价</th>
                                <th width='100px'>操作</th>
                            </tr>
                        </thead>
        
                        <tbody>
                            {{each cartList shop}}
                            <tr data-id="{{shop.id}}">
                                <td width='110px'>
                                    <input class="ch" type="checkbox" {{shop.check ? 'checked' : ''}}>
                                </td>

                                <td width='275px'><a href="/html/detail.html?id={{shop.id}}" style='float:left'><img src="{{shop.photo.img}}" alt=""></a><p class="fl">{{shop.tit}}</p><br> <span class="fl">-物流配送</span></td>
                                <td width='250px'><span>选择规格:{{shop.standard}}</span><br>&nbsp;&nbsp;<span>选择样式：{{shop.type}}</span></td>
                                <td width='180px'><b>{{shop.price.toFixed(2)}}</b>积分</td>
                                <td width='100px'><a href="javascript:;" class="subbtn all">-</a> <input class="fl inum" type="text" value='{{shop.num}}'><a href="javascript:;" class="addbtn all">+</a></td>
                                <td width='180px'><b class="eachsum">{{(shop.price * shop.num).toFixed(2)}}</b>积分</td>
                                <td width='100px'><ul>
                                    <li><a href="javascript:;" id="movebtn">移入收藏夹</a></li>
                                    <li><a href="javascript:;" class="delbtn">删除</a></li>
                                </ul></td>
                            </tr>
                            {{/each}}
                        </tbody>
        
                        <tfoot>
                            <tr>
                                <td width='110px'><input type="checkbox"  class="all-checked all2">全选</td>
                                <td width='275px'>
                                    <ul>
                                        <li><a href="javascript:;" class="del-choose">删除选中礼品</a></li>
                                        <li><a href="javascript:;" id="movebtn">移入收藏夹</a></li>
                                        <li><a href="javascript:;">开始对比</a></li>
                                    </ul>
                                </td>
                                <td width='250px'>已选商品<b id="totalNum">111</b>件</td>
                                <td width='400px'>合计 <b id='totalMoney'>111</b>积分</td>
                                <td></td>
                                <td></td>
                                <td width='160px'><a href="javascript:;" id="bigset" class="jump">结算</a></td>
                            </tr>
                        </tfoot>
        
                    </table>

            
            
            </script>



            
        </div>

    </div>
    <div class="foot"></div>
</body>
<script src="/libs/require/require.min.js" data-main="/js/shopcart.js"></script>
</html>